import BaseCURDV2Api from '@/framework/infra/base/BaseCURDV2Api'

class Icon extends BaseCURDV2Api {
  constructor() {
    super('cms/shortcut')
  }

  online(id) {
    return this.post('online', {id})
  }

  offline(id) {
    return this.post('offline', {id})
  }
}

export const shortcutApi = new Icon()
